package Preprocess;

import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.seg.common.Term;

import java.util.List;

public class test {
    public static void main(String[] args) {
        List<Term> terms = HanLP.segment("重庆市消委会");
        StringBuilder line = new StringBuilder();
        for (Term t : terms) {
            line.append(t.word + ' ');
        }
        System.out.println(line);
    }
}
